const {createProxyMiddleware} =require('http-proxy-middleware')

module.exports=function (app){
    app.use(
        '/api/api.php',
        createProxyMiddleware({
            target:"https://api.ixiaowai.cn",
            changeOrigin:true
        })
    )
    app.use(
        '/api/api.php',
        createProxyMiddleware({
            target:"https://tva2.sinaimg.cn",
            changeOrigin:true
        })
    )
    app.use(
        '/large',
        createProxyMiddleware({
            target:"https://tva2.sinaimg.cn",
            changeOrigin:true
        })
    )

}